Rapid virtual machine suspend and resume

ABSTRACT

A method of enabling “fast” suspend and “rapid” resume of virtual machines (VMs) employs a cache that is able to perform input/output operations at a faster rate than a storage device provisioned for the VMs. The cache may be local to a computer system that is hosting the VMs or may be shared cache commonly accessible to VMs hosted by different computer systems. The method includes the steps of saving the state of the VM to a checkpoint file stored in the cache and locking the checkpoint file so that data blocks of the checkpoint file are maintained in the cache and are not evicted, and resuming execution of the VM by reading into memory the data blocks of the checkpoint file stored in the cache.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application claims the benefit of U.S. Provisional Patent Application Ser. No. 61/849,808, filed Dec. 14, 2012, the entire contents of which are incorporated by reference herein.

BACKGROUND

Virtual machine (VM) suspend/resume is a feature in virtualized computer systems that allows administrators to save the running state of a VM and at a later time restore the VM to the exact same running state as when it was suspended. One benefit of resuming from a suspended VM is that the VM does not have to go through a complete boot cycle and as a result the VM can be brought on-line quickly with little or no disruption experienced by users.

The VM suspend/resume feature allows administrators to make efficient use of server resources that support the running VMs. Inactive, but otherwise live, VMs can be suspended to prevent them from consuming server resources. The server resources allocated to the suspended VMs can be re-allocated to active VMs that may benefit from the extra resource availability. In a virtual desktop environment, such as Virtual Desktop Infrastructure (VDI) which is commercially available from VMware, Inc., the resource savings can be enormous because studies have shown that many users stay logged into their remote desktops even though they have disconnected from the remote desktop sessions.

The process of suspending a VM is also referred to as checkpointing, which is described in U.S. Pat. No. 6,795,966, incorporated by reference herein in its entirety. During the VM suspend process, a file (known as a checkpoint file) is created on a storage device, typically a disk array, and the state of the VM, including its memory and CPU state, is stored in the file. During VM resume, this same file is loaded into memory to restore the state of the VM. With a shared storage device, it is possible to resume the VM on a different host than where it was suspended.

The VM suspend/resume process described above works well for the occasional suspend/resume of VMs, but does not scale if many VMs are suspended or resumed at the same time. When a large number of VMs are suspended at the same time, known as a “suspend storm,” the process can take a long time to complete and consequently the benefits gained from freeing up hardware resources from the VM suspensions would be delayed. For example, if 100 VMs each having 4 GB of allocated memory are suspended at the same time, this would result in a 100×4 GB (400 GB) of data being written to the storage device. The same applies to a “resume storm,” where many users are requesting connections to their VMs at about the same time. In the above example of 100 VMs, if users of such VMs were to request connections to their VMs at about the same time, the VM resume process would require 400 GB of data to be read from the storage device and loaded into memory, inevitably delaying many of the connections requested by the users.

While the impact of the suspend storm can be mitigated to an extent, by scheduling the VM suspensions in a staggered fashion to offset the load on the storage device, the resume storm cannot be staggered, because users are expecting to access their VMs shortly after they have requested access. As a result, the storage device becomes a bottleneck when resuming a large number of VMs at about the same time.

SUMMARY

One or more embodiments disclosed herein provide techniques that enable “fast” suspend and “rapid” resume of VMs by employing a cache that is able to perform input/output operations (IO) at a faster rate than a storage device provisioned for the VMs. The cache may be local to a computer system that is hosting the VMs or may be shared cache commonly accessible to VMs hosted by different computer systems.

A method of managing physical resources in a virtualized computer system including a plurality of host computers, a first storage device accessible by the host computers, and a second storage device, e.g., a local cache or shared cache, accessible by the host computers that has lower input/output latency and higher input/output throughput than the first storage device, according to an embodiment, includes the steps of: making a reservation against available capacity of the second storage device when a VM is powered on in one of the host computers, upon suspending the VM and receiving acknowledgement that a state of the VM has been saved in the second storage device; decreasing the available capacity of the second storage device by the size of the saved state of the VM; and upon resuming the VM, increasing the available capacity of the second storage device by the size of the saved state of the VM and making a reservation against the available capacity of the second storage device.

Further embodiments of the present invention include a non-transitory computer- readable storage medium comprising instructions that cause a computer system to carry out one or more of the above methods.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a simplified block diagram of a virtualized computer system that implements suspend and resume techniques according to one or more embodiments.

FIG. 2 is a flow diagram of a VM power on process according to an embodiment.

FIG. 3 is a flow diagram of a VM suspend process according to an embodiment.

FIG. 4 is a flow diagram of a VM resume process according to an embodiment.

FIG. 5 is a conceptual diagram that illustrates an example of cache reservations according to one or more embodiments.

DETAILED DESCRIPTION

FIG. 1 is a simplified block diagram of a virtualized computer system that implements suspend and resume techniques according to one or more embodiments. In FIG. 1, the virtualized computer system depicted in a simplified block diagram is a virtualized desktop infrastructure (VDI) system 100. Although the example provided herein is a virtualized desktop system, it should be recognized that suspend and resume techniques according to one or more embodiments may be practiced in other types of virtualized computer systems.

In VDI system 100, users are running VDI client software programs (hereinafter referred to as “VDI client 110” individually and “VDI clients 110” collectively) on local computing devices 108. VDI client 110 provides an interface for a user to access his or her desktop, which may be running in one of virtual machines (VMs) 157 or blade server (not shown) in a data center that is remote from the user's location. The term, “desktop” refers to the instance of an interactive operating environment provided by a computer operating system and software applications, typically in the form of a display and sound output and keyboard and mouse input. With VDI clients 110, users can access desktops running in a remote data center through a network (e.g., Internet) from any location, using a general purpose computer running a commodity operating system (OS) 111 and a VDI client software program such as VMware® View™, or a special purpose thin client such as those available from Dell, HP, NEC, Sun Microsystems, Wyse, and others.

In the embodiments described herein, desktops are running in virtual machines 157 and virtual machines 157 are instantiated on a group of host computers commonly referred to as a cluster (depicted in FIG. 1 as host computers 150, 152, 154). Each of the host computers includes virtualization software 158 and hardware 160, including one or more CPUs 161, system memory 162, and local solid state drive (SSD) 163, and is coupled to a shared SSD array 164 and a shared disk array 170. Local SSD 163 is implemented as a multi-purpose IO cache for a host computer to speed up any IOs requested by the VMs running therein. Shared SSD array 164 is implemented as a multi-purpose IO cache for the host computers connected thereto to speed up any IOs requested by the VMs running in them. In one embodiment, shared SSD array 164 is implemented according to techniques disclosed in U.S. Provisional Patent Application Ser. No. 61/728,207, filed Nov. 19, 2012, the entire contents of which are incorporated by reference herein. The embodiments disclosed herein also implement local SSD 163 and/or shared SSD array 164 as an IO cache to enable a VM to be suspended and resumed more rapidly. A virtual machine management server 140 controls VM power on/off in the host computers and has a resource management software module running therein (depicted in FIG. 1 as distributed resource scheduler (DRS) 141) to allocate hardware resources to the VMs (including the local SSD and shared SSD resources) and also perform load balancing on the hardware resources across the VMs. Cache manager 191, which is a component of virtualization software 158, manages the usage of the local SSD and shared SSD resources in conjunction with DRS 141. In other embodiments, storage devices other than SSD may be used, such as phase change memory, so long as they have lower input/output latency and higher input/output throughput than shared disk array 170.

When a user desires to connect to a remote desktop through VDI client 110, the user launches VDI client 110 on local computing device 108 and logs in by providing user credentials. VDI client 110 then communicates with a connection broker (not shown) to authenticate the user. If the authentication is successful, VDI client 110 connects directly to a virtual machine that is configured by VM management server 140 to run an instance of the user's desktop. Until the user logs out of his or her desktop, the instance of the user's desktop will continue running in the virtual machine and will continue consuming hardware resources needed by the virtual machine. In situations where many users do not log out of their remote desktops although they may have disconnected their sessions, hardware resources that are reserved for virtual machines that are supporting such inactive remote desktops can be unnecessarily high. As a way to permit allocation of such reserved but unused hardware resources to other VMs, a checkpoint module that is part of the virtualization software (e.g., checkpoint module 192 of virtualization software 158) is used to suspend the VMs that may still be running to support the inactive remote desktops so that the hardware resources of the VMs, upon suspension, can be freed for reallocation. When users reconnect to their remote desktops, the VMs supporting such remote desktops are resumed.

According to one or more embodiments, the state of the suspended VMs is stored in a cache that is able to perform IO with lower latencies and higher throughputs than a storage device provisioned for the VMs. In the embodiment depicted in FIG. 1, the cache is the multi-purpose cache discussed above, and may be local SSD 163 or shared SSD array 164, and the storage device provisioned for the VMs is shared disk array 170 and is hereinafter sometimes referred to as “storage.” In addition, the SSDs of local SSD 163 and shared SSD array 164 may be implemented as flash memory and included as one of hardware resources managed by DRS 141. A file system is implemented in the cache so that the state of the suspended VMs can be saved into the cache as a file and restored from the file during resume. This file is referred to herein as a “checkpoint file” and represents an object that can be created, opened, closed, read, written, and deleted the same way like any object in shared disk array 170.

In the virtualized computer system of FIG. 1, the suspend/resume techniques according to one or more embodiments, referred to herein as “rapid suspend/resume,” may be enabled for any one of the VMs. FIG. 2 is a flow diagram of a VM power on process that includes additional steps for VMs that have been enabled for rapid suspend/resume. The steps shown in FIG. 2 are carried out by virtual machine management server 140.

The VM power on process begins at step 210 when virtual machine management server 140 receives a request to power on a VM. At step 212, virtual machine management server 140 checks a configuration file for the VM to see if the VM has been enabled for rapid suspend/resume. If not, the VM is powered on in the normal manner (step 222). If the VM has been enabled for rapid suspend/resume, virtual machine management server 140 through DRS 141, which tracks all of the prior cache reservations made, searches for a host computer that has sufficient unreserved cache space to accommodate rapid suspend/resume of the VM. In other words, the size of the unreserved cache space of the host computer has to be equal to or greater than the expected size of the suspended VM image (i.e., the size of the running state of the VM maintained in memory). It should be recognized that the unreserved cache space of the host computer may have been reduced as a result of reservations made against the cache space in accordance with step 220 described below by other VMs that are enabled for rapid suspend/resume and already powered on. In one embodiment, the cache space of the host computer is provided by only the local cache space of the host computer (e.g., space of local SSD 163 for host computer 150). In another embodiment, the cache space of the host computer is provided by only the shared cache space (e.g., space of shared SSD array 164). In other embodiments, the cache space of the host computer is provided by both the local cache space of the host computer and the shared cache space.

If there are no host computers with sufficient cache capacity at step 216, an error is returned at step 217 and the VM is not powered on. On the other hand, if a host computer with sufficient cache capacity is found at step 216, that host computer is selected at 218 as the host computer in which the VM will be powered on. At step 220, virtual machine management server 140 makes a reservation against the cache space of host computer in the amount equal to the expected size of the suspended VM image. Then, at step 222, the VM is powered on in the host computer selected at step 218 in the normal manner.

FIG. 3 is a flow diagram of a VM suspend process according to an embodiment. In the VM suspend process shown in FIG. 3, steps 310, 312, and 314 are carried out by virtual machine management server 140, and steps 320, 322, 323, 324, and 326 are carried out by a host computer (one of host computers 150, 152, 154; in particular, its virtualization software) in which the VM to be suspended is running In addition, the cache referenced in the description below is the cache in which the VM reserved space when it was powered on.

The VM suspend process begins at step 310 when virtual machine management server 140 selects a VM for suspension. The selection may be in response to an input by an administrator or it may be an automatic selection when virtual machine management server 140 detects that the VM has been idle or has been in a disconnected state for longer than a predetermined amount of time (e.g., 1 hour). At step 312, virtual machine management server 140 issues a command to the host computer of the selected VM to suspend the VM. When, at step 314, virtual machine management server 140 receives an acknowledgement from the host computer that the state of VM selected for suspension has been successfully saved to a checkpoint file, virtual machine management server 140 reduces the size of the cache by the size of the VM's checkpoint file. The cache size is reduced in this manner as a way to ensure that DRS 141 continues to reserve the cache space needed to store the VM's checkpoint file. Because reservations are in general made for executing VMs, without this cache size reduction, DRS 141 may make reservations on cache space that is being used to store the VM's checkpoint file.

Upon receiving the command from virtual machine management server 140 to suspend the selected VM at step 320, a cache manager of the host computer at step 322 compares the expected size of the suspended VM with the free space available in the cache. If the expected size of the suspended VM is greater than the free space available in the cache (e.g., in situation where data blocks from other IOs have filled up the cache), step 323 is executed where the cache manager according to its eviction policy (e.g., an eviction policy based on least recently used or least frequently used) evicts data blocks from the cache. If these blocks are not yet committed to the data store, then they will be sent to shared disk array 170 in sufficient number to accommodate the saving of the suspended VM in the cache at step 324. If the expected size of the suspended VM is less than or equal to the free space available in the cache, step 324 is executed where a checkpoint module of the host computer saves the state of the VM in the cache, in particular to a checkpoint file whose data blocks are stored in the cache. At step 326, the cache manager “locks” the checkpoint file in the cache to prevent the data blocks of the checkpoint file from being evicted from the cache as IOs are being generated while the data blocks of the checkpoint file are maintained in the cache. It should be recognized that without this locking mechanism, not all of the data blocks of the checkpoint file may reside in the cache as a result of eviction and could cause a delay in the resumption of the suspended VM.

In general, embodiments described herein can handle suspend storms much faster relative to conventional techniques, because IOs associated with suspend operations of VMs that are enabled for rapid suspend/resume are being handled by the local SSD or the shared SSD array which has lower IO latency and higher throughput than rotating disk-based storage arrays. In addition, some embodiments throttle VM suspend operations to a certain maximum per hour by placing them in a queue and processing them in accordance with the throttling policy. This ensures a wider dispersion of VM suspend operations during suspend storms.

FIG. 4 is a flow diagram of a VM resume process according to an embodiment. The steps shown in FIG. 4 are carried out by virtual machine management server 140. The cache referenced in the description below is the cache in which the VM reserved space when it was powered on.

The VM resume process begins at step 410 when virtual machine management server 140 receives a request to resume a VM. This request may be received, for example, when a VDI user reconnects to a VM that is running an instance of his or her remote desktop. At step 412, virtual machine management server 140 determines if the VM is suspended in a shared cache, e.g., shared SSD array 164 (i.e., the checkpoint file of the VM is stored in the shared cache). If it is, virtual machine management server 140 at step 414 selects a host computer in which to resume the VM. The selection may be made by DRS 141 according to resource availability in the cluster of host computers being managed by virtual machine management server 140. After selecting the host computer at step 414, virtual machine management server 140 at step 416 issues a command to a checkpoint module in the selected host computer to resume execution of the VM. Then, at step 430, virtual machine management server 140 increases size of the cache in which the VM was suspended by the size of the suspended VM image so that the cache space previously occupied by the suspended VM image can be made available for use, and makes a reservation against the shared cache space in the amount equal to the size of the suspended VM image so that, if the VM should be suspended again, sufficient cache space will be available to accommodate this.

If at step 412, virtual machine management server 140 determines that the VM is suspended in a local cache of a host computer (e.g., local SSD 163 of host computer 150), virtual machine management server 140 at step 420 issues a command to a checkpoint module of the host computer with the local cache containing the suspended VM image to resume execution of the VM. Subsequent to the VM being resumed in that host computer, DRS 141 may, according to the resource scheduling policies implemented therein, determine that the host computer is overloaded and at step 422 determine that migration of the resumed VM (vMotion) is needed. The migration of the resumed VM is carried out according to known techniques at step 424. Exemplary implementations of migration of VMs while the VMs are executing (sometime referred to as “live migration”) are described in detail in U.S. Pat. No. 7,484,208 which issued on Jan. 27, 2009, and U.S. Pat. No. 7,680,919, which issued on Mar. 16, 2010. These two patents are expressly herein incorporated by reference in their entirety. After step 424, step 430 is carried out as described above (except the reservation is made against the local cache space). If vMotion is not needed, step 424 is skipped and step 430 is executed as described above (except the reservation is made against the local cache space) after step 422.

FIG. 5 is a conceptual diagram that illustrates an example of cache reservations according to one or more embodiments. In the example illustrated in FIG. 5, cache reservations made against cache space of host computer 150 are depicted and it is assumed that the cache of host computer 150 is provided by local SSD 163 or shared SSD 164. It is further assumed that the size of the cache is 72 GB, and six VMs are running in host computer 150, namely VM1, VM2, VM3, VM4, VM5 and VM6, with only VM1, VM2, VM4, and VM6 enabled for rapid suspend/resume. Executing images of VM1, VM2, VM4, and VM6 have sizes of 4 GB, 6 GB, 4 GB, and 4 GB, respectively. As shown in table 500, which depicts the state of the cache, at the beginning of the illustrated process, the cache size is 72 GB and it is assumed for purposes of illustration that there is no free space, i.e., data blocks of IOs have been issued previously in sufficient numbers to have used up all of the cache space. A total of 18 GB of cache reservations have been made for the VMs that have been enabled for rapid suspend/resume and the size of the cache reservations for each of the VMs is illustrated in broken lines in cache space 501.

Arrow 511 depicts a process step in which VM1 is suspended and 4 GB of cached data block are evicted (prior to the suspension) because there is no space in the cache to accommodate the executing image of VM1 which is 4 GB in size. Cache space 502 shows the state of the cache after VM1 is suspended. The portion of cache space 502 that is storing the executing image of VM1 is depicted as being locked. As depicted in table 500, the total cache size is reduced by the size of the locked portion to 68 GB and the total cache reservations is also reduced to 14 GB, reflecting the fact that DRS 141 is no longer making a cache reservation for VM1 because VM is no longer executing.

Prior to the process step depicted by arrow 512 (suspend VM2), it is assumed for purposes of illustration that 6 GB of the cache space has been freed (e.g., as a result of data blocks stored in the cache being invalidated or demoted to storage), which is large enough to accommodate the saving of the executing image of VM2. In this state, when VM2 is suspended, data blocks of the cache need not be evicted to accommodate the saving of the executing image of VM2. Cache space 503 shows the state of the cache after VM2 is suspended. It shows locked portions for suspended images of VM1 and VM2 and reserved portions for VM4 and VM6. As depicted in table 500, the total cache size is reduced to 62 GB (as a result of 6 GB being locked for VM2), the size of cache reservations reduced to 8 GB (reflecting the fact that DRS 141 is no longer making a cache reservation for VM2), and free space reduced to 0 GB (as result of the executing image of VM2 being saved into all of the previously available free space).

Arrow 513 depicts a process step in which the suspended VMs, namely VM1 and VM2 are resumed. Cache space 504 shows the state of the cache after these VMs have resumed. It shows no locked portions and reserved portions for VM1, VM2, VM4, and VM6. As depicted in table 500, the total cache size is increased by 10 GB which is equal to the combined size of the restored images of VM1 and VM2, because this space is now available for DRS 141 to make reservations against. In addition, the size of cache reservation and the size of the free space are shown to have increased by 10 GB also.

In some embodiments, the configuration file for the VM, in addition to indicating whether it is enabled for rapid suspend/resume, may also specify suspend/resume schedule, and DRS 141 would be configured to determine from this schedule how long the VM's suspended image needs to be maintained in the cache. If the schedule indicates that the VM's suspended image no longer needs to be maintained in the cache, DRS 141 may increase the total cache size by the size of the suspended VM image and unlock the data blocks of the suspended VM image so that they can be evicted. DRS 141 also may, in accordance with the schedule, demote the suspended VM image to storage and promote the suspended VM image from storage “just in time” for VM resume. In addition, the configuration file for the VM may specify whether rapid suspend/resume is “best effort.” This setting would allow the VM to be powered-on even if sufficient cache space is not available to store its executing state.

The various embodiments described herein may employ various computer-implemented operations involving data stored in computer systems. For example, these operations may require physical manipulation of physical quantities—usually, though not necessarily, these quantities may take the form of electrical or magnetic signals, where they or representations of them are capable of being stored, transferred, combined, compared, or otherwise manipulated. Further, such manipulations are often referred to in terms, such as producing, identifying, determining, or comparing. Any operations described herein that form part of one or more embodiments of the invention may be useful machine operations. In addition, one or more embodiments of the invention also relate to a device or an apparatus for performing these operations. The apparatus may be specially constructed for specific required purposes, or it may be a general purpose computer selectively activated or configured by a computer program stored in the computer. In particular, various general purpose machines may be used with computer programs written in accordance with the teachings herein, or it may be more convenient to construct a more specialized apparatus to perform the required operations.

The various embodiments described herein may be practiced with other computer system configurations including hand-held devices, microprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, and the like.

One or more embodiments of the present invention may be implemented as one or more computer programs or as one or more computer program modules embodied in one or more computer readable media. The term computer readable medium refers to any data storage device that can store data which can thereafter be input to a computer system—computer readable media may be based on any existing or subsequently developed technology for embodying computer programs in a manner that enables them to be read by a computer. Examples of a computer readable medium include a hard drive, network attached storage (NAS), read-only memory, random-access memory (e.g., a flash memory device), a CD (Compact Discs)—CD-ROM, a CD-R, or a CD-RW, a DVD (Digital Versatile Disc), a magnetic tape, and other optical and non-optical data storage devices. The computer readable medium can also be distributed over a network coupled computer system so that the computer readable code is stored and executed in a distributed fashion.

Although one or more embodiments of the present invention have been described in some detail for clarity of understanding, it will be apparent that certain changes and modifications may be made within the scope of the claims. Accordingly, the described embodiments are to be considered as illustrative and not restrictive, and the scope of the claims is not to be limited to details given herein, but may be modified within the scope and equivalents of the claims. In the claims, elements and/or steps do not imply any particular order of operation, unless explicitly stated in the claims.

Virtualization systems in accordance with the various embodiments may be implemented as hosted embodiments, non-hosted embodiments or as embodiments that tend to blur distinctions between the two, are all envisioned. Furthermore, various virtualization operations may be wholly or partially implemented in hardware. For example, a hardware implementation may employ a look-up table for modification of storage access requests to secure non-disk data.

Many variations, modifications, additions, and improvements are possible, regardless the degree of virtualization. The virtualization software can therefore include components of a host, console, or guest operating system that performs virtualization functions. Plural instances may be provided for components, operations or structures described herein as a single instance. Finally, boundaries between various components, operations and data stores are somewhat arbitrary, and particular operations are illustrated in the context of specific illustrative configurations. Other allocations of functionality are envisioned and may fall within the scope of the invention(s). In general, structures and functionality presented as separate components in exemplary configurations may be implemented as a combined structure or component. Similarly, structures and functionality presented as a single component may be implemented as separate components. These and other variations, modifications, additions, and improvements may fall within the scope of the appended claim(s). 

We claim:
 1. In a virtualized computer system including a plurality of host computers, a first storage device accessible by the host computers, and a second storage device accessible by the host computers that has lower input/output latency and higher input/output throughput than the first storage device, a method of managing physical resources of the virtualized computer system including the first storage device and the second storage device, said method comprising: making a reservation against available capacity of the second storage device when a VM is powered on in one of the host computers; upon suspending the VM and receiving acknowledgement that a state of the VM has been saved in the second storage device, decreasing the available capacity of the second storage device by the size of the saved state of the VM; and upon resuming the VM, increasing the available capacity of the second storage device by the size of the saved state of the VM and making a reservation against the available capacity of the second storage device.
 2. The method of claim 1, wherein the reservation made against the available capacity of the second storage device when the VM is powered on in one of the host computers is for capacity of the second storage device equal to the size of the saved state of the VM.
 3. The method of claim 2, wherein the reservation made against the available capacity of the second storage device when the VM is resumed is for capacity of the second storage device equal to the size of the saved state of the VM.
 4. The method of claim 1, wherein the host computers include a first host computer and a second host computer and the VM is powered on in the first host computer.
 5. The method of claim 4, wherein the VM is suspended while being executed in the first host computer and is to be resumed in the first host computer for execution therein.
 6. The method of claim 5, wherein the second storage device includes a local solid state drive (SSD) configured in the first host computer and, upon suspending the VM, the state of the VM is saved in the local SSD configured in the first host computer.
 7. The method of claim 4, wherein the VM is suspended while being executed in the first host computer and is to be resumed in the second host computer for execution therein.
 8. The method of claim 7, wherein the second storage device includes a shared solid state drive (SSD) accessible by the first and second host computers and, upon suspending the VM, the state of the VM is saved in the shared SSD.
 9. The method of claim 1, wherein the first storage device includes rotating disks and the second storage device does not include rotating disks.
 10. The method of claim 1, wherein the first storage device is a disk-based storage array and the second storage device is a solid state drive (SSD).
 11. A non-transitory computer readable medium comprising instructions for causing a computer system to carry out a method of managing physical resources thereof, wherein the computer system includes a plurality of host computers, and the physical resources of the computer system include a first storage device accessible by the host computers, and a second storage device accessible by the host computers that has lower input/output latency and higher input/output throughput than the first storage device, said method including the steps of: making a reservation against available capacity of the second storage device when a VM is powered on in one of the host computers; upon suspending the VM and receiving acknowledgement that a state of the VM has been saved in the second storage device, decreasing the available capacity of the second storage device by the size of the saved state of the VM; and upon resuming the VM, increasing the available capacity of the second storage device by the size of the saved state of the VM and making a reservation against the available capacity of the second storage device.
 12. The non-transitory computer readable medium of claim 11, wherein the reservation made against the available capacity of the second storage device when the VM is powered on in one of the host computers is for capacity of the second storage device equal to the size of the saved state of the VM.
 13. The non-transitory computer readable medium of claim 12, wherein the reservation made against the available capacity of the second storage device when the VM is resumed is for capacity of the second storage device equal to the size of the saved state of the VM.
 14. The non-transitory computer readable medium of claim 11, wherein the host computers include a first host computer and a second host computer and the VM is powered on in the first host computer.
 15. The non-transitory computer readable medium of claim 14, wherein the VM is suspended while being executed in the first host computer and resumed in the first host computer for execution therein.
 16. A virtualized computer system comprising: a plurality of host computers each having one or more virtual machines (VMs) running therein; a storage device accessible by the host computers; a cache device accessible by the host computers, the cache device having lower input/output latency and higher input/output throughput than the storage device; and a management server configured to carry out a method of managing the cache device, the method including the steps of making a reservation against available capacity of the cache device when a VM is powered on in one of the host computers; upon suspending the VM and receiving acknowledgement that a state of the VM has been saved in the cache device, decreasing the available capacity of the cache device by the size of the saved state of the VM; and upon resuming the VM, increasing the available capacity of the cache device by the size of the saved state of the VM and making a reservation against the available capacity of the cache device.
 17. The virtualized computer system of claim 16, wherein the cache device includes a local solid state drive (SSD) configured in a host computer and, upon suspending the VM, the state of the VM is saved in the local SSD configured in the host computer.
 18. The virtualized computer system of claim 17, wherein the VM is suspended while being executed in the host computer and resumed in another host computer for execution therein.
 19. The virtualized computer system of claim 16, wherein the cache device includes a shared SSD accessible by the host computers and, upon suspending the VM, the state of the VM is saved in the shared SSD.
 20. The virtualized computer system of claim 19, wherein the VM is suspended while being executed in one of the host computers and resumed in another one of the host computers for execution therein. 